package com.xdcplus.web.service.qa.impl;

import com.xdcplus.mp.service.impl.BaseServiceImpl;
import com.xdcplus.web.common.pojo.entity.qa.QaMtrlBatchReportAdverse;
import com.xdcplus.web.common.pojo.vo.qa.QaMtrlBatchReportAdverseVO;
import com.xdcplus.web.mapper.qa.QaMtrlBatchReportAdverseMapper;
import com.xdcplus.web.service.qa.QaMtrlBatchReportAdverseService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.util.List;

/**
 * 质量结批报告-不良品统计(QaMtrlBatchReportAdverse)表服务实现类
 *
 * @author Devin.Sang
 * @since 2024-01-24 11:44:38
 */
@Slf4j
@Service("qaMtrlBatchReportAdverseService")
public class QaMtrlBatchReportAdverseServiceImpl extends BaseServiceImpl<QaMtrlBatchReportAdverseMapper, QaMtrlBatchReportAdverse, QaMtrlBatchReportAdverse, QaMtrlBatchReportAdverseVO> implements QaMtrlBatchReportAdverseService {

    @Autowired
    protected QaMtrlBatchReportAdverseMapper qaMtrlBatchReportAdverseMapper;

    @Override
    public List<QaMtrlBatchReportAdverse> queryReportDetail(String reportCode, Timestamp startTime, Timestamp endTime, String proSpec, double touliaoPercent) {
        return baseMapper.queryReportDetail(reportCode,
                startTime,
                endTime,
                proSpec,
                touliaoPercent);
    }


}
